<template>
  <div>
      <table>
          <tr>
              <td>id</td>
              <td>商品名</td>
              <td>价格</td>
          </tr>
          <tr v-for="i in aa">
              <td>{{i.id}}</td>
              <td>{{i.name}}</td>
              <td>{{i.price}}</td>
          </tr>
      </table>
  </div>
</template>

<script>
export default {
    data(){
        return{
            aa:[]
        }
    },
    methods:{
        add(){
            this.$axios.get(``).then(item=>{
                this.aa = item.data.list
            })
        }
    },
    mounted(){
        this.add()
    }
}
</script>

<style>

</style>